package cn.rydiy.rmf;

import java.util.ArrayList;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import cn.rydiy.rmf.common.RmfSplash;

/**
 * 
 * @author Rydiy
 *
 */
public class RMFActivity extends Activity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);      
        Log.d("RMF", "OnCreate");

        //new RmfSplash
        RmfSplash rSplash = new RmfSplash(this);
        
        //imgs for guide
        ArrayList<Integer> imgs = new ArrayList<Integer>();
        imgs.add(R.drawable.feature_guide_0);
        imgs.add(R.drawable.feature_guide_1);
        imgs.add(R.drawable.feature_guide_2);
        imgs.add(R.drawable.feature_guide_3);
        //set imgs to RmfSplash
        rSplash.setGuide(imgs);

        //set splash settings
        //rSplash.setSplash(getResources(), R.drawable.rmf_img_splash);      
        rSplash.setSplash(getResources(), R.drawable.rmf_img_splash, R.layout.rmf_ly_tabmain);
        
        //show splash and guide
        rSplash.show(3000);
    }
}